from rest_framework.serializers import ModelSerializer
from .models import *


class CanDataDetailSerializers(ModelSerializer):

    class Meta:
        model = CanDataDetail
        fields = ('__all__')

class CanDataSerializers(ModelSerializer):
    hdetail = CanDataDetailSerializers(many=True)

    class Meta:
        model = CanData
        fields = ('__all__')